import request from '@/utils/request'

// 查询停车车位列表
export function listParking(query) {
  return request({
    url: '/park/parking/list',
    method: 'get',
    params: query
  })
}

// 查询停车车位详细
export function getParking(id) {
  return request({
    url: '/park/parking/' + id,
    method: 'get'
  })
}

// 新增停车车位
export function addParking(data) {
  return request({
    url: '/park/parking',
    method: 'post',
    data: data
  })
}

// 修改停车车位
export function updateParking(data) {
  return request({
    url: '/park/parking',
    method: 'put',
    data: data
  })
}

// 删除停车车位
export function delParking(id) {
  return request({
    url: '/park/parking/' + id,
    method: 'delete'
  })
}
